#include "Stack.h"

int main()
{
    ST s;
    STInit(&s);
    STPush(&s,1);
    STPush(&s,2);
    STPush(&s,3);
    STPush(&s,4);
    STPush(&s,5);
    STPush(&s,6);

    while (!STEmpty(&s))
    {
        printf("%d", STTop(&s)); 
        //printf(" %d ", STSize(&s));
        STPop(&s);
    }
    printf("\n");

    STDestroy(&s);
    return 0;
}